import {request, post} from "@/utils/request";
import {IRetryPickUpData, ISetPickUpData} from "@/api/modules/order";
import ApiResult from "@/api/base/ApiResult";

export const getPageOrder = (data: any) => {
    return request('merchant/order/pageOrder', data)
}

export const getStores = () => {
    return request('merchant/order/getStores', {})
}

/**
 * 领取失败重试
 */
export const retryPickUp: (data: IRetryPickUpData) => Promise<ApiResult<any>> = (data) => {
    return request('extensions/merchant/order/retryPickUp', data)
}

/**
 * 设为未提货
 */
export const setPickup: (data: ISetPickUpData) => Promise<ApiResult<any>> = (data) => {
    return request('extensions/merchant/order/setPickUp', data)
}

/**
 * 获取异常订单统计
 */
export function getAbnormalStatics(data?:any): Promise<ApiResult<any>> {
    return request ('extensions/merchant/order/excOrderStatics', data || {})
}
